export default {
  // 开启命名空间
  namespaced: true,

  // 数据
  state: () => ({
    payinfo: uni.getStorageSync('payinfo') || [],
   
  }),

  // 方法
  mutations: {
    updatepayinfo(state, payinfo) {
      state.payinfo = payinfo
      this.commit('m_pay/savepayinfoToStorage')
    },
    savepayinfoToStorage(state) {
      uni.setStorageSync('payinfo', state.payinfo)
    },
    
  },
}